import request from '@/utils/request'

export function loadHolidayByYear (year: string) {
  return request({
    url: `/starHoliday/loadHolidayByYear?year=${year}`,
    method: 'get'
  })
}

export function setHoliday (day: string) {
  return request({
    url: `/starHoliday/setHoliday?date=${day}`,
    method: 'get'
  })
}

export function initHolidayByYear (year: string) {
  return request({
    url: `/starHoliday/initHolidayByYear?year=${year}`,
    method: 'get'
  })
}
